import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
  name: 'dataNull'
})
export class DataNullPipe implements PipeTransform {

  transform(value: any, format = '--'): string {
    if (value === null || value === undefined || value === '') {
      return format;
    }
    return value;
  }

}
